From: Jasper St. Pierre Date: Fri, 11 Nov 2011 03:35:41 +0000 (-0500) Subject: browser-plugin: Set that we need XEmbed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7309 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2c2729f7be6ff4d8946c51ff8b59187fe38052d1;p=gnome-shell.git browser-plugin: Set that we need XEmbed This makes the plugin work under WebKit-based browsers such as Chromium and Epiphany. See http://code.google.com/p/chromium/issues/detail?id=38229 and WindowedCreatePlugin() in http://src.chromium.org/viewvc/chrome/trunk/src/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc?revision=86823&content-type=text%2Fplain for more information. https://bugzilla.gnome.org/show_bug.cgi?id=663823 --- diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c index 0ab2d7835..2daa0ddcd 100644 --- a/browser-plugin/browser-plugin.c +++ b/browser-plugin/browser-plugin.c @@ -816,6 +816,11 @@ NPP_GetValue(NPP instance, *(NPObject**)value = funcs.createobject (instance, &plugin_class); break; + + case NPPVpluginNeedsXEmbed: + *(bool *)value = TRUE; + break; + default: ; }